package com.tgit.sso.paltform.central.mapper;

import com.tgit.sso.paltform.central.entity.Product;
import com.tgit.sso.paltform.central.entity.ReqUserPwd;
import com.tgit.sso.paltform.central.entity.ReqUserRegister;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.tgit.sso.paltform.central.entity.AccountInfo;

import java.util.List;

@Repository("userMapper")
public interface UserMapper {

	//账号信息获取
	AccountInfo findByUsername(@Param("userName") String userName);

	//产品信息获取
	List<Product> findProdcutInfo(@Param("nowTime")String nowTime);

	//用户注册
    Integer registerUserInfo(@Param("param")ReqUserRegister req);

	//用户修改密码
    Integer updateAuthpwd(@Param("param") ReqUserPwd req,@Param("pwd") String pwd);

	//用户是否存在
    Integer findUserByEmail(@Param("email")String  email,@Param("userName")String  userName);
}
